<h1>Report Level Jaringan</h1>
<div class="list">
    <table cellpadding="0" cellspacing="0">
        <tr>
            <th width="100">Level</th>
            <th>Jumlah Titik</th>
        </tr>
        <?php
        $total_node = 0;
        for ($i = 1; $i <= 10; $i++) {
            $node = vo_network::get_matrix_level(Yii::app()->user->getState('network_id'), $i);
            if ($node != '') {
                echo '<tr>';
                echo '<td align="center">Level ' . $i . '</td>';
                echo '<td align="center">' . $node . '</td>';
                echo '</tr>';
                $total_node += $node;
            }
        }
        if($total_node == 0) {
            echo '<tr><td colspan="2" align="center">-----====-----</td></tr>';
        }
        ?>
    </table>
</div>